from constants.enums import ProviderEnum, AccountEnum
class Rules:
    # (供应商, 交易类型, 交易对方, 商品, 收支, 支付方式, 当前状态, 借方, 贷方)
    wechat_rules = [
        # 借：费用增加 贷：资产减少
        (ProviderEnum.WECHAT, '扫二维码付款', '', '收款方备注:二维码收款', '支出', '零钱通', '已转账', AccountEnum.EXPENSES_TRANSPORT, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '商户消费', '深圳通', '深圳通乘车码乘地铁消费', '支出', '平安银行信用卡', '支付成功', AccountEnum.EXPENSES_TRANSPORT, AccountEnum.LIABILITIES_PA),
        (ProviderEnum.WECHAT, '商户消费', '福田园岭三津汤包', '', '支出', '招商银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.LIABILITIES_CMB),
        (ProviderEnum.WECHAT, '商户消费', '方中山深圳福田店', '', '支出', '招商银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.LIABILITIES_CMB),
        (ProviderEnum.WECHAT, '商户消费', '百果园', '', '支出', '招商银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.LIABILITIES_CMB),
        (ProviderEnum.WECHAT, '商户消费', '麦当劳', '', '支出', '招商银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.LIABILITIES_CMB),
        (ProviderEnum.WECHAT, '商户消费', '', '开心购', '支出', '招商银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_VT, AccountEnum.LIABILITIES_CMB),
        (ProviderEnum.WECHAT, '亲属卡交易', 'Kyle', '亲属卡', '支出', '零钱通', '支付成功', AccountEnum.EXPENSES_KYLE, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '扫二维码付款', '韦有锋', '收款方备注:二维码收款', '支出', '零钱通', '已转账', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '扫二维码付款', '水果老板', '收款方备注:二维码收款', '支出', '零钱通', '已转账', AccountEnum.EXPENSES_FOOD_FT, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '扫二维码付款', '李艳豆腐', '收款方备注:二维码收款', '支出', '零钱通', '已转账', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '商户消费', '重庆鲜面条', '', '支出', '零钱通', '', AccountEnum.EXPENSES_FOOD_VT, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '商户消费', '朴朴超市', '', '支出', '零钱通', '支付成功', AccountEnum.EXPENSES_FOOD_VT, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '商户消费', '深圳市腾讯计算机系统有限公司', '', '支出', '零钱通', '支付成功', AccountEnum.EXPENSES_STUDY, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        # (ProviderEnum.WECHAT, '商户消费|转账|微信红包|扫二维码付款', '', '', '支出', '招商银行.*1234', '支付成功|对方已收钱|已转账', AccountEnum.EXPENSES_OTHER, AccountEnum.ASSETS_CURRENT_BANK_CMB1234),

        # 借：资产增加 贷：收入增加
        (ProviderEnum.WECHAT, '红包|转账', '', '', '收入', '', '已存入零钱|已到账', AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND, AccountEnum.INCOME_OTHER),
        # (ProviderEnum.WECHAT, '其他', '赞赏作者的收款', '/', '收入', ''?, '已到账', AccountEnum.ASSETS_CURRENT_WECHAT_WALLET, AccountEnum.INCOME_SIDELINE),

        # 借：资产增加 贷：资产减少
        (ProviderEnum.WECHAT, '商户消费', '美团金融服务', '', '支出', '零钱通', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '商户消费', '麦当劳', '', '支出', '零钱通', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        (ProviderEnum.WECHAT, '商户消费', '麦当劳', '', '支出', '广发银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_OB, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
        # (ProviderEnum.WECHAT, '转入零钱通-来自零钱', '', '', '/', '零钱', '支付成功', AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND, AccountEnum.ASSETS_CURRENT_WECHAT_WALLET),
        (ProviderEnum.WECHAT, '商户消费', '海底捞火锅', '', '支出', '广发银行信用卡', '支付成功', AccountEnum.EXPENSES_FOOD_VT, AccountEnum.LIABILITIES_GF),
        # (ProviderEnum.WECHAT, '零钱通转出-到招商银行.*1234', '', '/', '/', '零钱通', '支付成功', AccountEnum.ASSETS_CURRENT_BANK_CMB1234, AccountEnum.ASSETS_CURRENT_WECHAT_MINIFUND),
    ]


    # alipay_rules = [
    #     # 借：费用增加 贷：资产减少
    #     (ProviderEnum.ALIPAY, '服饰装扮', '', '', '支出', '招商银行.*1234', '交易成功|等待确认收货', AccountEnum.EXPENSES_CLOTHING, AccountEnum.ASSETS_CURRENT_BANK_CMB1234),
    #     (ProviderEnum.ALIPAY, '餐饮美食', '', '', '支出', '招商银行.*1234', '交易成功|等待确认收货', AccountEnum.EXPENSES_FOOD, AccountEnum.ASSETS_CURRENT_BANK_CMB1234),
    #     (ProviderEnum.ALIPAY, '交通出行', '', '', '支出', '招商银行.*1234', '交易成功', AccountEnum.EXPENSES_TRANSPORT, AccountEnum.ASSETS_CURRENT_BANK_CMB1234),

    #     # 借：费用增加 贷：负债增加
    #     (ProviderEnum.ALIPAY, '交通出行', '', '火车票', '支出', '花呗', '交易成功', AccountEnum.EXPENSES_TRANSPORT, AccountEnum.LIABILITIES_HUABEI),

    #     # 借：负债减少 贷：资产减少
    #     (ProviderEnum.ALIPAY, '信用借还', '', '花呗', '不计收支', '招商银行.*1234', '还款成功', AccountEnum.LIABILITIES_HUABEI, AccountEnum.ASSETS_CURRENT_BANK_CMB1234),
    # ]